<?php

namespace App\Model;
use Hyperf\Database\Model\SoftDeletes;

class BannerImage extends Model {
    protected $table = 'banner_image';
    use SoftDeletes;

    protected $fillable = [
        'banner_id',
        'image',
        'title',
        'url',
        'status',
        'sorting'
    ];

    public function banner() {
        return $this->belongsTo(Banner::class);
    }
}